package cn.edu.zut.domin;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 图书卡片的信息
 */
public class Book implements Serializable {
    /*图书编号*/
    private String bookId;
    /*图书类别代码*/
    private String typeId;
    /*图书名称*/
    private String name;
    /*出版社*/
    private String publisher;
    /*出版日期*/
    private Date publishDate;
    /*定价*/
    private Double price;
    /*内容摘要*/
    private String summary;
    /*实际数量*/
    private int AllAmount;
    /*借出数量*/
    private int lentAmount;
    /*卡片登记日期*/
    private Date registerDate;

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getAllAmount() {
        return AllAmount;
    }

    public void setAllAmount(Integer allAmount) {
        AllAmount = allAmount;
    }

    public Integer getLentAmount() {
        return lentAmount;
    }

    public void setLentAmount(Integer lentAmount) {
        this.lentAmount = lentAmount;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId='" + bookId + '\'' +
                ", typeId='" + typeId + '\'' +
                ", name='" + name + '\'' +
                ", publisher='" + publisher + '\'' +
                ", publishDate=" + publishDate +
                ", price=" + price +
                ", summary='" + summary + '\'' +
                ", AllAmount=" + AllAmount +
                ", lentAmount=" + lentAmount +
                ", registerDate=" + registerDate +
                '}';
    }
}
